import java.util.Map;

/**
 * Instances will respond to commands from the web page.  The {@link
 * #name()} method should correspond to the command to which we want to respond.
 */
interface Handler {
  
  /**
   * Do something computation with argumeents <code>args</code> and
   * pass back the result.
   */
  String handle(Map<String,String> args);

  /**
   * The command to which we respond.  For example, if this method
   * returns <code>Foo</code>, then we would respond to requests such as 
   * <code>http://localhost:4444/Foo?...</code>.
   */
  String name();

}
